package util;

import java.awt.List;

public class ComponentsUtil {

    public static void loadList(List list, java.util.List<String> values) {
        list.removeAll();
        for (String value : values) {
            list.add(value);
        }

        if (!values.isEmpty()) {
            list.select(0);
        }
    }

}
